import request from '@/utils/request'

export const getArticleList = (params) => {
  return request({
    url: '/admin/interview/query',
    params
  })
}

export const getArticleDetail = (id) => {
  return request({
    url: '/admin/interview/show',
    params: {
      id
    }
  })
}

export const setArticleItem = (data) => {
  return request({
    method: 'post',
    url: '/admin/interview/create',
    data
  })
}

export const updateArticle = (data) => {
  return request({
    method: 'put',
    url: '/admin/interview/update',
    data
  })
}

export const deleteArticleItem = (id) => {
  return request({
    url: '/admin/interview/remove',
    method: 'delete',
    data: {
      id
    }
  })
}
